import service from '@/base';
import JWTSecret from 'haibei-secret';
let exportFile = 'http://120.76.102.182:8890/haibei_manager_new/'

export default {

    //交易列表
    haiBeiServerTradeList(params = {}) {
        params = JWTSecret.jwt(params);
        return service.post('getPearltransOrderByPage.action', { encry: params }).then(res => res.data);
    },
    //退款
    haiBeiServerBackMoneyTradeList(params = {}) {
        params = JWTSecret.jwt(params);
    },
    //导出guit
    haiBeiServerExportExcelTradeList(params = {}) {
        params = JWTSecret.jwt(params);

        return service.post('exportPearltransOrderList.action', { encry: params }).then(res => res.data);
    },
    //导出
    haiBeiServerDownloadlTradeList(file, name) {
        return exportFile + 'downloadExport.action?file=' + file + '&showName=' + name
    },
    //交易列表-导出交易列表
    haiBeiServerTradeExportTransXLS(params = {}) {
        params = JWTSecret.jwt(params);
        return service.post('/exportTransXLS.action', { encry: params }).then(res => res.data);
    },

}